# -*- coding:utf-8 -*-
from util import findutil

def SendKeys(send,click,message,self):

    # 查找控件
    key = findutil.FindId(self.driver, send)
    button = findutil.FindClaas(self.driver, click)

    # 输入内容
    key.send_keys(message)
    # 点击搜索
    button.click()
    # 休眠
    self.driver.implicitly_wait(5)


# 查询元素断言
def Search(cls,self):

    # 查询一个元素
    self.m_list = findutil.FindClaas(self.driver, cls)

    # 进行断言
    self.assertTrue(self.m_list.is_displayed())

